<%--
  Created by IntelliJ IDEA.
  User: chenlei
  Date: 2024/6/22
  Time: 8:07 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="/param/testParam?username=lisiw&password=01011022">请求参数绑定</a>

<div>
    <form action="/param/testSubmit" method="post">
        用户名 <input type="text" name="username"> <br/>
        用户age <input type="text" name="userage"><br/>
        用户id <input type="text" name="user.certid"><br/>
        用户身份证号 <input type="text" name="user.certname"><br/>
        <button type="submit">点击提交</button>
    </form>
    <h2>List和Map集合的提交</h2>
    <form action="/param/testSubmit" method="post">
        用户名 <input type="text" name="username"> <br/>
        用户age <input type="text" name="userage"><br/>

        用户id <input type="text" name="user.certid"><br/>
        用户身份证号 <input type="text" name="user.certname"><br/>

<%--
  private List<User> userList;
    private Map<String,User> userMapper;
--%>
        用户id-list <input type="text" name="userList[0].certid"><br/>
        用户身份证号-list  <input type="text" name="userList[0].certname"><br/>


        用户id-map <input type="text" name="userMapper['chen'].certid"><br/>
        用户身份证号-map  <input type="text" name="userMapper['chen'].certname"><br/>

        <button type="submit">点击提交</button>
    </form>
</div>
</body>
</html>
